package com.medical.data.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class FormVo {

    @Pattern(regexp = "^\\S{1,10}$")
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "父ID")
    private String pId;

    @ApiModelProperty(value = "表单样式")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Map<String, Object> scheme;


    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "是否为可添加项目")
    private String isAddItem;

}
